package com.sd.coupon.service.impl;

import com.sd.coupon.entity.User;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sd.coupon.mapper.UserMapper;
import com.sd.coupon.service.IUserService;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.ehcache.EhCacheCacheManager;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lws
 * @since 2018-12-04
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

//    @Resource
//    EhCacheCacheManager appEhCacheCacheManager;
//
//    @CachePut
    @Override
    public boolean save(User entity){
        return super.save(entity);
    }
}
